class Car {
	private String licensePlate, owner, address;

	public Car(String licensePlate, String owner, String address) {
		this.licensePlate = licensePlate;
		this.owner = owner;
		this.address = address;
	}

	public String getLicensePlate() {
		return licensePlate;
	}
	
	public String getOwner() {
		return owner;
	}
	
	public String getAddress() {
		return address;
	}

}

class TrafficOffice {
	private static Car[] cars=new Car[1000];
	private static int carsRegistered=0;
	
	public void registerCar(Car car) {
		cars[carsRegistered % 1000]=car;
		carsRegistered++;
	}
	
	public Car getCar(String licensePlate){
		for (int i=0; i<(carsRegistered % 1000); i++){
            if (cars[i].getLicensePlate().equals(licensePlate)) return cars[i];
        }
		System.out.println("Car not registered!");
		return null;
	}
}

class Delict{
	private double fee;
	private int points;
	
	public Delict(double fee, int points){
		this.fee=fee;
		this.points=points;
	}
	
	public double getFee(){
		return fee;
	}
	
	public int getPoints(){
		return points;
	}
}

public class Aufgabe4 {

	public static void main(String[] args) {
		Car karre=new Car("A-BC 100", "Meier", "Hafenstr. 1");
		TrafficOffice TO=new TrafficOffice();
		TO.registerCar(karre);
		Car x=TO.getCar("A-BC 100");
		System.out.println(x.getOwner());
		x=TO.getCar("A-BC 999"); //not registered
	}

}
